package java44th.group.controller.wx.footprint;

import com.github.pagehelper.PageInfo;
import java44th.group.bean.admin.vo.BaseRespVo;
import java44th.group.bean.common.BasePageInfo;
import java44th.group.bean.wx.vo.footprint.WxFootPrintDeleteVO;
import java44th.group.bean.wx.vo.footprint.WxFootPrintVO;
import java44th.group.service.wx.footprint.WxFootPrintService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @projectName: project-second
 * @package: java44th.group.controller.wx.footprint
 * @className: WxFootPrintController
 * @author: 杨浩祥
 * @description: TODO
 * @date: 2022/10/16 14:32
 * @version: 1.0
 */
@RestController
@RequestMapping("wx/footprint")
public class WxFootPrintController {

    @Autowired
    WxFootPrintService footPrintService;

    @GetMapping("list")
    public BaseRespVo list(BasePageInfo info){
        BaseRespVo baseRespVo = footPrintService.list(info);
        return baseRespVo;
    }

    @PostMapping("delete")
    public BaseRespVo delete(@RequestBody WxFootPrintDeleteVO wxFootPrintDeleteVO){
        BaseRespVo baseRespVo = footPrintService.delete(wxFootPrintDeleteVO);
        return baseRespVo;
    }







}
